package pwd.allen.password.custom;

import pwd.allen.password.PasswordUtil;

/**
 * @author pwdan
 * @create 2022-01-14 15:04
 **/
public class CustomPasswordUtil extends PasswordUtil {

    /**
     * 模拟从数据库中校验弱密码
     * @return
     */
    public boolean checkFromDB() {
        if (password != null && password.toLowerCase().contains("error")) {
            return false;
        }
        return true;
    }
}
